package com.company.project.dao;

import com.company.project.core.Mapper;
import com.company.project.model.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysRoleMapper extends Mapper<SysRole> {

    public SysRole selectByCode(@Param("roleCode") String roleCode);

    public List<SysRole> getRoleListByUser(@Param("userId") int userId);

    public int changeStatus(@Param("roleId") int roleId,@Param("status") int status);

    public int deleteRoleByUser(@Param("userId") int userId);
}